package org.cuit.epoch.seon.combat;

public class FileSystemBrowser {
    public static void main(String[] args) {
        // 创建文件和目录
        File file1 = new File("Document.txt", 15);
        File file2 = new File("Image.png", 25);
        Directory directory1 = new Directory("MyDocuments");
        Directory directory2 = new Directory("Pictures");
        Directory rootDirectory = new Directory("Root");

        // 构建目录结构
        directory1.add(file1);
        directory2.add(file2);
        rootDirectory.add(directory1);
        rootDirectory.add(directory2);

        // 显示文件系统结构
        rootDirectory.showDetails();
    }
}